{# **
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * #}

<div id="specific-price-list-container" class="d-none">
  <div id="specific-prices-loading">
    <div class="loading-label">{{ 'Loading specific prices'|trans({}, 'Admin.Catalog.Feature') }}</div>
    <div class="spinner spinner-primary"></div>
  </div>
  <table class="table" id="specific-prices-list-table">
    <thead class="thead-default">
    <tr>
      <th>{{ 'ID'|trans({}, 'Admin.Global') }}</th>
      <th>{{ 'Combination'|trans({}, 'Admin.Catalog.Feature') }}</th>
      <th>{{ 'Currency'|trans({}, 'Admin.Global') }}</th>
      <th>{{ 'Country'|trans({}, 'Admin.Global') }}</th>
      <th>{{ 'Group'|trans({}, 'Admin.Global') }}</th>
      <th>{{ 'Store'|trans({}, 'Admin.Global') }}</th>
      <th>{{ 'Customer'|trans({}, 'Admin.Global') }}</th>
      <th>{{ 'Specific price (tax excl.)'|trans({}, 'Admin.Catalog.Feature') }}</th>
      <th>{{ 'Discount (tax incl.)'|trans({}, 'Admin.Catalog.Feature') }}</th>
      <th>{{ 'Duration'|trans({}, 'Admin.Global') }}</th>
      <th>{{ 'Units'|trans({}, 'Admin.Catalog.Feature') }}</th>
      <th></th>
      <th></th>
    </tr>
    </thead>
    <tbody>
    {# template rows dynamically generated using javascript #}
    </tbody>
  </table>
  <div class="row justify-content-center" id="specific-prices-pagination">
    {{ include('@PrestaShop/Admin/Common/javascript_pagination.html.twig', {
      limit: 10,
      limitChoices: [10, 20, 50, 100, 300, 1000],
    }) }}
  </div>
  <script type="text/html" id="specific-price-tr-template">
    <tr>
      <td class="specific-price-id"></td>
      <td class="combination"></td>
      <td class="currency"></td>
      <td class="country"></td>
      <td class="group"></td>
      <td class="shop"></td>
      <td class="customer"></td>
      <td class="price"></td>
      <td class="impact"></td>
      <td class="period" data-unlimited-text="{{ 'Unlimited'|trans({}, 'Admin.Global') }}">
        <label>
          {{ 'From'|trans({}, 'Admin.Global') }}
          <span class="from"></span>
        </label>
        <br>
        <label>
          {{ 'To'|trans({}, 'Admin.Global') }}
          <span class="to"></span>
        </label>
      </td>
      <td class="from-qty"></td>
      <td>
        <button
          type="button"
          title="{{ 'Delete'|trans({}, 'Admin.Actions') }}"
          class="js-delete-specific-price-btn btn tooltip-link"
          data-confirm-title="{{ 'Specific price deletion'|trans({}, 'Admin.Global') }}"
          data-confirm-message="{{ 'Are you sure you want to delete this specific price?'|trans({}, 'Admin.Global') }}"
          data-confirm-btn-label="{{ 'Delete'|trans({}, 'Admin.Actions') }}"
          data-cancel-btn-label="{{ 'Cancel'|trans({}, 'Admin.Actions') }}"
          data-confirm-btn-class="btn-danger"
        ><i class="material-icons">delete</i>
        </button>
      </td>
      <td>
        <button
          type="button"
          title="{{ 'Edit'|trans({}, 'Admin.Actions') }}"
          class="js-edit-specific-price-btn btn tooltip-link"
          data-modal-title="{{ 'Edit specific price'|trans({}, 'Admin.Global') }}"
          data-confirm-button-label="{{ 'Save and publish'|trans({}, 'Admin.Actions') }}"
          data-cancel-button-label="{{ 'Cancel'|trans({}, 'Admin.Actions') }}"
        >
          <i class="material-icons">edit</i>
        </button>
      </td>
    </tr>
  </script>
</div>
